import request from '@/utils/request'

// 查询学生作业提交列表
export function listAssignmentsubmission(query) {
  return request({
    url: '/assignmentsubmission/assignmentsubmission/list',
    method: 'get',
    params: query
  })
}

// 查询学生作业提交详细
export function getAssignmentsubmission(submissionId) {
  return request({
    url: '/assignmentsubmission/assignmentsubmission/' + submissionId,
    method: 'get'
  })
}

// 新增学生作业提交
export function addAssignmentsubmission(data) {
  return request({
    url: '/assignmentsubmission/assignmentsubmission',
    method: 'post',
    data: data
  })
}

// 修改学生作业提交
export function updateAssignmentsubmission(data) {
  return request({
    url: '/assignmentsubmission/assignmentsubmission',
    method: 'put',
    data: data
  })
}

// 删除学生作业提交
export function delAssignmentsubmission(submissionId) {
  return request({
    url: '/assignmentsubmission/assignmentsubmission/' + submissionId,
    method: 'delete'
  })
}
